project (lua)
#lib
SET(LIBSRCS
  lapi.c lcode.c ldebug.c ldo.c ldump.c lfunc.c lgc.c llex.c lmem.c 
  lobject.c lopcodes.c lparser.c lstate.c lstring.c ltable.c ltm.c  
  lundump.c lvm.c lzio.c
  lauxlib.c lbaselib.c ldblib.c liolib.c lmathlib.c loslib.c ltablib.c 
  lstrlib.c loadlib.c linit.c
  )

add_library (liblua ${LIBSRCS})

#lua luac
include_directories (./)
link_directories (./)


add_executable (lua lua.c)
add_executable (luac luac.c print.c)


target_link_libraries (lua liblua)
target_link_libraries (luac liblua)


